// src/api/banner.ts
import request from '@/utils/requset'
export interface IAddBannerParams {
  img: string
  alt: string
  link: string
}
export function addBanner (params: IAddBannerParams) {
  return request({
    url: '/banner/add',
    method: 'POST',
    data: params
  })
}

export function getBannerList () {
  return request({
    url: '/banner/list'
  })
}

export function deleteBanner (params: { bannerid: string }) {
  return request({
    url: '/banner/delete',
    data: params
  })
}